import Vue from 'vue'
import routers from 'vue-router'

//登记页面
//登录页 file:///E:/gitproject/1-flowerDemo/flowerDemo/flowerManager_vue/pages/components/login.vue
import login from '../components/login.vue';
//file:///E:/gitproject/1-flowerDemo/flowerDemo/flowerManager_vue/src/components/Propaganda
// 宣传首页
import Propaganda from '../components/Propaganda/Propaganda.vue';
//移动端首页 file:///E:/gitproject/1-flowerDemo/flowerDemo/flowerManager_vue/src/components/mobile/home.vue
import mobileHome from '../components/mobile/home.vue';
//首页列表
import mobileHomeList from '../components/mobile/homelist.vue';
//作品列表file:///E:/gitproject/1-flowerDemo/flowerDemo/flowerManager_vue/src/components/mobile/workerlist.vue
import mobileWorkerlis from '../components/mobile/workerlist.vue';
//我是动态列表  file:///E:/gitproject/1-flowerDemo/flowerDemo/flowerManager_vue/src/components/mobile/activity.vue
import mobileActivity from '../components/mobile/activity.vue';
//我是关于我们 file:///E:/gitproject/1-flowerDemo/flowerDemo/flowerManager_vue/src/components/mobile/aboutus.vue
import mobileAboutus from '../components/mobile/aboutus.vue';
 
Vue.use(routers)

export default new routers({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      redirect: {
        name: 'Propaganda'
      }
    },
	{
	  path: '/index',
	  name: 'Propaganda',
	  component: Propaganda
	},
	{
	  path: '/index/mobile',
	  name: 'mobileHome',
	  component: mobileHome,
	  children:[
	    {
	        path:'/',
	        component:mobileHomeList,
	    },
	    {
	        path:'/index/mobile/homelist',
	        component:mobileHomeList,
	    },
	    {
	        path:'/index/mobile/workerlis',
	        component:mobileWorkerlis,
	    },
	    {
	        path:'/index/mobile/activity',
	        component:mobileActivity,
	    },
	    {
	        path:'/index/mobile/aboutus',
	        component:mobileAboutus,
	    },
		]
	},
	{
	  path: '/teach/flower/login',
	  name: 'login',
	  component: login
	}
  ]
})
